import { addPaper, getPapers, getPaper, editPaper, delPaper, exist } from "../../api/papers";

export default {
    namespaced: true,
    state: {},
    mutations: {},
    actions: {
        addPaper(store, data) {
            return addPaper(data);
        },

        getPapers(store, params) {
            return getPapers(params);
        },

        getPaper(store, id) {
            return getPaper(id);
        },

        editPaper(store, { id, data }) {
            return editPaper(id, data);
        },

        delPaper(store, id) {
            return delPaper(id);
        },

        exist(store, params) {
            return exist(params)
        },
    },
};
